// ============================================================
// 오류 내역 카운트 Grid
// ============================================================
var httpProxyBody = new Ext.data.HttpProxy({
	method: 'POST',
	url: '',
	timeout: 90000
});

var storeBody = new Ext.data.JsonStore({
	root: 'json_list',
	totalProperty: 'json_count',
	idProperty: 'file_nm',
	fields: [
	         'file_no', 'line_no', 'line_text'
	         ],
	//autoLoad: true;
	proxy: httpProxyBody
});

function fnRdrLine(val, metadata, record, rowIndex, colIndex, store)
{
	var strRet = record.data.line_text;
	
	strRet = strRet.replace(/[<]/g, "&lt;");
	strRet = strRet.replace(/[>]/g, "&gt;");
	
	strRet = strRet.replace(/AUTO FIX/, "<b><font color=blue>AUTO FIX</font></b>");
	
	return strRet;
}

var gridBody = new Ext.grid.GridPanel({
	id: 'id_grid_type_count',
	region: 'center',
	title: m_Title,
	border: false,
	iconCls: 'icon-grid',
	store: storeBody,
	columns: [{
		id: 'file_no',
		header: 'file_no',
		dataIndex: 'file_no',
		hidden: true
	},{
		id: 'line_no',
		dataIndex: 'line_no',
		header: '라인',
		width: 70
	},{
		id: 'line_text',
		dataIndex: 'line_text',
		header: '본문',
		renderer: fnRdrLine
	}],
	stripeRows: true,
	loadMask: true,
	autoExpandColumn: 'line_text',
	autoScroll: true
});